package com.example.zx_springboot.controller;

import com.example.zx_springboot.service.ZxOrderService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
public class ZxOrderController {
    @Autowired
    private ZxOrderService zxOrderService;
    @GetMapping("/findByPage")
    public PageInfo findAll(@RequestParam("pageNum") Integer pageNum,
                            @RequestParam("pageSize") Integer pageSize,
                            @RequestParam("order_id") String order_id) {
        return zxOrderService.findByPage(pageNum, pageSize,order_id);
    }
}
